#ifndef ADMIN_H
#define ADMIN_H

#include <QDialog>
#include "ui_admin.h"
#include <QFrame>


namespace Ui {
class admin;
}

class admin : public QDialog
{
    Q_OBJECT

public:
    explicit admin(QWidget *parent = nullptr);
    ~admin();
    std::string content[8];
    int desk;
    QFrame *frame;

public slots:
    void slot_sitdown(std::string desknum);
    void slot_SubmitOrder(std::string content1,std::string desknum);
    void slot_Pay(uint64_t total,std::string desknum);
    void slot_Callwaiter(std::string desknum);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_7_clicked();

    void on_pushButton_8_clicked();

    void on_pushButton_10_clicked();

    void on_pushButton_9_clicked();

signals:
    void State(uint64_t desknum);
    void ModifyDesk(int num);

private:
    Ui::admin *ui;
    //获取对应餐桌的菜品信息
    QLabel* label=new QLabel[8];
};

#endif // ADMIN_H
